<!DOCTYPE html>
<html lang="cn">
<!--注释-->
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="./bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="./css/index.css">
    <script src="./js/angular-1.5.9/angular.min.js"></script>
    <script src="./js/angular-1.5.9/angular-cookies.min.js"></script>
    <script src="./js/angular-1.5.9/angular-messages.min.js"></script>
    <script src="./js/controllers/indexCtrl.js"></script>
    <script src="./js/directive/cookieDirective.js"></script>
    <!-- <script>
        var scriptSrc = ["/js/angular-1.5.9/angular.min.js", "/js/angular-1.5.9/angular-cookies.min.js",
            "/js/angular-1.5.9/angular-messages.min.js",
            "/js/controllers/indexCtrl.js", "/js/directive/cookieDirective.js"
        ];
        var linkHref = ["/bootstrap/css/bootstrap.min.css", "/css/index.css"];
        var hostport=document.location.host;  
        var head = document.getElementsByTagName('head')[0];
        var script = document.createElement('script');
        script.src = "http://"+hostport+"/js/loginJS.js";
        head.appendChild(script);
        script.onload=function(){
            loginJS(scriptSrc,linkHref);
        }
    </script> -->
    <title>登录</title>
</head>

<body ng-app="myApp">
    <div class="container login">
        <form class="form-horizontal  col-sm-5 col-sm-offset-3 form_box" name="myform" ng-controller="form_login" action="/indexLogin"
            method="POST">
            <div class="form-group" login-msg>
                <!--提示信息-->
            </div>
            <div class="form-group col-sm-12">
                <label for="ID" class="control-label col-sm-2">帐号</label>
                <div class="col-sm-10">
                    <input type="text" ng-model="user.id" class="form-control col-sm-12" id="ID" required name="id" placeholder="请输入帐号">
                    <div class="glyphicon glyphicon-user glyicon"></div>
                </div>
            </div>

            <div class="form-group col-sm-12">
                <label for="pass" class="control-label col-sm-2">密码</label>
                <div class="col-sm-10">
                    <input type="password" ng-model="user.pass" class="form-control col-sm-12" id="pass" required name="pass" placeholder="请输入密码">
                    <div class="glyphicon glyphicon-lock glyicon"></div>
                </div>
            </div>
            <div class="form-group col-sm-12 radio_class">
                <!-- <label class="checkbox-inline" ng-repeat="userType in userTypes"><input type="radio" name="user"><span ng-bind="userType"></span></label> -->
                <label for="0" class="checkbox-inline"><input type="radio" name="user" value="0" checked id="0">普通用户</label>
                <label for="1" class="checkbox-inline"><input type="radio" name="user" value="1" id="1">超级用户</label>
            </div>
            <div class="form-group">
                <div class="col-sm-3 col-sm-offset-4">
                    <button type="submit" class="btn btn-info btn-block" ng-submit="removecookie()" ng-disabled="(user.id&&user.pass)?false:true">登录</button>
                </div>
            </div>
            <a href="html/newuser.html" class="btn btn-link pull-right">注册新用户</a>
        </form>
    </div>
</body>

</html>